<template>
  <div>
    <qian-header v-show="$route.meta.show"></qian-header>
    <!-- 将导航提炼成为一个普通组件 -->
    <nav-list v-show="$route.meta.show"></nav-list>

    <!-- 登录注册作为一级路由  当跳转到登录注册时，qian-header和nav-list 应该消失
    
    v-show v-if
    前提条件  判断条件  true false
    
     -->
    <router-view></router-view>
  </div>
</template>

<script>
import NavList from "./components/NavList.vue";
import QianHeader from "./components/QianHeader.vue";
export default {
  name: "",
  props: [""],
  data() {
    return {};
  },

  components: { QianHeader, NavList },

  computed: {},

  beforeMount() {},

  mounted() {
    console.log(this.$route.meta);
  },

  methods: {},

  watch: {},
};

/* 






*/
</script>
<style lang='' scoped>
</style>